home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C++
/
Applications
/
PICSee Dust 1.01
/
Quaternary Source
/
Class_ProgressWindow.h
< prev
next >
Wrap
Text File
|
1995-11-13
|
967b
|
35 lines
#ifndef CLASS_PROGRESSWINDOW_H_
#define CLASS_PROGRESSWINDOW_H_
#ifndef CLASS_PROGRESSBAR_H_
#include "Class_ProgressBar.h"
#endif
typedef class ProgressWindow {
public:
ProgressWindow(GDHandle targetMonitor, short maxValue);
~ProgressWindow();
virtual void Update();
virtual void Increment();
virtual void IncrementBy(short stepValue);
virtual void IncrementTo(short curValue);
virtual void SetPrimaryMessage(Str255 message);
virtual void SetSecondaryMessage(Str255 message);
virtual WindowRef GetWindow() { return(this->progressWindow); }
virtual void SetReadDelay(unsigned short readDelay) { this->readDelay = readDelay; }
virtual void FinishProgress();
protected:
ProgressBarPtr progressBar;
WindowPtr progressWindow;
Str255 primaryStr;
Str255 secondaryStr;
unsigned short readDelay;
void DrawPrimaryString();
void DrawSecondaryString();
} *ProgressWindowPtr, **ProgressWindowHdl;
#endif // CLASS_PROGRESSWINDOW_H_